<?php
/**
 * XuYuan Project
 *
 * @package	XueYuan 
 * @author	Jiuchi Team
 * @since	Version 1.0.0
 * @filesource
 */
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Login view
 * @author Wayne Yu
 */
?>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
    <?php $this->load->view('common/head');?>
	<!-- Page special css -->
    <link rel="stylesheet" type="text/css" href="/assets/css/index.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/mycenter.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/mycircle.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/jquery.fancybox.css">
</head>
<body>
    <div class="navigation">
        <?php $this->load->view('common/navigation');?> 
    </div>
    <div class="wrapper">
	<div class="main-content">
		<div class="main-content-inner">
			<div class="home-list-title" style="font-weight: normal;color: #999;">
				<span class="pointer" onclick="window.location = '<?php echo site_url('topic/view/'.$commentInfo['topic_id'])?>'">&lt&lt&nbsp返回话题</span>
			</div>

			<div class="home-list">
				<div>
					<div id="topicDetails" class="clearfix">
						<ul id="replysMore">
							<li>
								<div class="rep">
									<div class="rep-header clearfix">
										<div style="width: 28px;height: 28px;background: black;position: absolute;margin-left: 5px;">
											<a target="_blank" href="#">
												<img src="" class="img-avatar">
											</a>
										</div>
										<div class="rep-note" style="line-height: 20px;">
											<i class="iconfont"></i>
											<span class="rep-auth-src" style="margin-left: 48px;">XXX</span>&nbsp<span class="rep-catalog text-small">的评论</span>
										</div>
										<div class="rep-time">2天前</div>
									</div>
									<div class="rep-content-wrapper clearfix">
										<div class="rep-content" style="position: relative;">
											<div class="rep-comment">关于这个问题，根据我的个人经验来说，还是有一些发言权的的。遥想当年，我学高等数学和线性代数的时候，那叫 一个凄惨。</div>
										<div class="add-reply pointer" style="position: absolute;right:10px;bottom:0px;color:#999;">添加回复</div>  
										</div>
									</div> 
									<div class="rep-rely hidden">
										<div class="reply-box" contenteditable="true"></div>
										<div class="clearfix">
											<button class="btn-reply btn-blue">发表</button>
											<span class="btn-cancel btn-write">取消</span>
										</div>
									</div>
								</div>
							</li>
							<li class="reply-item" style="padding-left: 30px;">
								<div class="rep bd-top">
									<div class="rep-header clearfix">
										<div class="portrait" style="width: 28px;height: 28px;background: black;position: absolute;margin-left: 5px;">
											<a target="_blank" href="#">
												<img src="" class="img-avatar">
											</a>
										</div>
										<div class="rep-note" style="line-height: 20px;">
											<i class="iconfont"></i>
											<span class="rep-auth-src username" style="margin-left: 48px;"></span>&nbsp<span class="rep-catalog text-small">回复</span><span class="rep-auth-src replyname" style="margin-left: 48px;"></span>
										</div>
										<div class="rep-time date"></div>
									</div>
									<div class="rep-content-wrapper clearfix">
										<div class="rep-content" style="position: relative;">
											<div class="rep-comment">关于这个问题，根据我的个人经验来说，还是有一些发言权的的。遥想当年，我学高等数学和线性代数的时候，那叫 一个凄惨。</div>
										<div class="add-reply pointer" style="position: absolute;right:10px;bottom:0px;color:#999;">回复</div>
										</div>
									</div>                      
									</div>
									<div class="rep-rely hidden">
										<div class="reply-box" contenteditable="true"></div>
										<div class="clearfix">
											<button class="btn-reply btn-blue">发布</button>
											<span class="btn-cancel btn-write">取消</span>
										</div>
									</div>
								</div>
							</li>
							<a href="javascript:" class="btn-white btn-more" id="get_more">查看更多</a>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
    <div class="footer">
        <?php $this->load->view('common/footer');?>
    </div>
	<script type="text/javascript" src="/assets/js/jquery.more.js"></script>
    <script>
    $(document).ready(function() {
        $(document).ready(function() {
            $('#replysMore').more({
                'address': '<?php echo site_url('comment/getCommentReplies/'.$commentInfo['id'])?>',
                'template': '.reply-item',
                'trigger': '.btn-more'
            });
        });
    });
    </script>
<!--     <script>
    $(document).ready(function() {
        /* 点击添加回复显示回复界面 */
        $('.add-reply').click(function () {
            $('.rep-rely').show();
        })
        /* 点击取消显示回复界面 */
        $('.btn-cancel').click(function () {
            $('.rep-rely').hide();
        })
        /* 点击发布上传数据 */
        $('.btn-reply').click(function () {
            $.ajax({
                type: 'post',
                url: '',
                data: {
                    

                },
                datatype: 'json',
                success: function(data) {
                    if (data.StatusCode == 200) {

                    } else if (data.StatusCode == 300) {
                        $("#msg-block").text("发表失败!");
                        $.fancybox({
                            href: "#msg-block",
                        });
                    }
                }
            });
        })

        $('#replysMore').more({
            'address'   :   '',
            'template'  :   '.reply-item',
            'trigger'   :   '.btn-more',   
        });
    });

    </script> -->
	
</body>
</html>

